import axios from 'axios';
import Cookies from 'js-cookie';

export function del (url, param) {
    return axios.delete(url, { data: param });
}
export function delT (url, param) {
    return axios.delete(url, {
        data: param,
        headers: {
            token: Cookies.get('NCCLOUD_TOKEN')
        }
    });
}

export function delSeafile (url, headers, param) {
    return axios.delete(url, {
        data: param,
        headers: {
            Authorization: 'Token ' + headers.token
        }
    });
}
